//
// Created by hamlet on 23-6-19.
//

#ifndef COMPILERS_QUAD_H
#define COMPILERS_QUAD_H


enum class QuadType {
    Plus, Minus, Multiply, Divide,
    Assign,
    J, JEq, JGreater, JLess, JNZ,
    Print,
    Start, Exit,
};

// 四元式
struct Quad {
    QuadType op;
    int arg1;
    int arg2;
    int result;
};


#endif //COMPILERS_QUAD_H
